<template>
  <div>
    <p>请选择你喜欢的专栏</p>
    <input type="checkbox" id="jack" value="科幻" v-model="checkedNames" />
    <label for="jack">科幻</label>
    <input type="checkbox" id="john" value="喜剧" v-model="checkedNames" />
    <label for="john">喜剧</label>
    <input type="checkbox" id="mike" value="动漫" v-model="checkedNames" />
    <label for="mike">动漫</label>
    <input type="checkbox" id="mike1" value="冒险" v-model="checkedNames" />
    <label for="mike">冒险</label>
    <input type="checkbox" id="mike2" value="科技" v-model="checkedNames" />
    <label for="mike">科技</label>
    <input type="checkbox" id="mike3" value="军事" v-model="checkedNames" />
    <label for="mike">军事</label>
    <input type="checkbox" id="mike4" value="娱乐" v-model="checkedNames" />
    <label for="mike">娱乐</label>
    <input type="checkbox" id="mike5" value="奇闻" v-model="checkedNames" />
    <label for="mike">奇闻</label>
    <br />
    <!-- <span>Checked names: {{ checkedNames }}</span> -->
    <ul>
      <li v-for="(item, index) in checkedNames" :key="index">{{ item }}</li>
    </ul>
  </div>
</template>

<script>
export default {
  components: {},
  props: {},
  data() {
    return {
      checkedNames: [],
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {},
};
</script>

<style scoped></style>
